import request from '@/utils/request'

// 查询收费里程实测数据列表
export function listTollMileageStat(query) {
  return request({
    url: '/function/TollMileageStat/list',
    method: 'get',
    params: query
  })
}

// 查询收费里程实测数据详细
export function getTollMileageStat(id) {
  return request({
    url: '/function/TollMileageStat/' + id,
    method: 'get'
  })
}

// 新增收费里程实测数据

export function addTollMileageStat(data) {
  return request({
    url: '/function/TollMileageStat',
    method: 'post',
    data: data
  })
}

// 修改收费里程实测数据

export function updateTollMileageStat(data) {
  return request({
    url: '/function/TollMileageStat',
    method: 'put',
    data: data
  })
}

// 删除收费里程实测数据

export function delTollMileageStat(id) {
  return request({
    url: '/function/TollMileageStat/' + id,
    method: 'delete'
  })
}

// 导出收费里程实测数据
export function exportTollMileageStat(query) {
  return request({
    url: '/function/TollMileageStat/export',
    method: 'post',
    params: query,
    responseType: 'blob'
  })
}
